package com.test.p09decorator.example01;

public class Clinet01 {
    public static void main(String[] args) {
        Cook cook0 = new WashHandsCook(new ChineseCook());
        Cook cook1 = new WashHearCook(new ChineseCook());

        cook0.cookDinner();
        cook1.cookDinner();

        System.out.println("==========================");
        Cook cook3 = new WashHearCook(cook0);
        cook3.cookDinner();
    }
}
